import { request } from "@/utils/service"

/** 列表 */
export function getPostListApi(data: any) {
  return request({
    url:"/system/post/list",
    method: "POST",
    data
  })
}

/** 新增岗位 */
export function addPostApi(data: any) {
  return request({
    url:"/system/post/insert",
    method: "POST",
    data
  })
}
/** 修改岗位 */
export function editPostApi(data: any) {
  return request({
    url:"/system/post/update",
    method: "POST",
    data
  })
}
/** 删除岗位 */
export function delPostApi(data: any) {
  return request({
    url:"/system/post/delete",
    method: "POST",
    data
  })
}